<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">

<head>
  <meta http-equiv="content-type" content="text/html;charset=UTF-8" />
  <%= javascript_include_tag 'jquery.js' %>
  <%= javascript_include_tag 'growl' %>
  <%= javascript_include_tag 'store.js' %>
  <%= stylesheet_link_tag 'default' %>
  <title>中侨机电-专业的机电设备网上商城</title>
</head>

<body>

<div id="flash" style="display:none;">
  <%= flash[:notice] %>
</div>

<div class="search">
  <%=form_tag('/products/search',:method =>:get)%>
  <input id="keyword" name="keyword"  />
  <input type="submit" value="产品搜索" id="search_button" />
  </form>
</div>
<div class="supBar">
  <img src="/images/zqlogo4.jpg" alt="中侨机电" id="logo"></img>
  <div class="menu">
    <a href="/store">首页</a> |
    <a href="/store/contact">联系我们</a> |
    <% if session[:user_id] %>
      <%=User.find(session[:user_id]).login%>|
      <a href="/sessions/destroy">退出登录</a>
    <%else%>
      <a href="/users/new">注册</a> |
      <a href="/sessions/new">登录</a>
    <%end%>
  </div>
</div>

<div id="content_warrper">
  <div class="newsContainer">

    <div class="news1">
      <h3>产品分类</h3>
      <div id="sidebar_menu">
        <%= menu_html %>
      </div>
    </div><!-- End news1-->

    <div class="news2">
      <%= render :partial =>'/articles/size_news',
        :collection=>Article.index_news(1,2) %>
    </div>
    <!-- End news2-->

  </div><!-- End newsContainer-->

  <div class="mainContainer">
    <!-- START:hidden_div -->
    <div class="rightInfo">
      <div id="cart"  <%= hidden_div_if(@cart && !@cart.items.empty?) %> >
        <% if @cart %>
          <%= render(:partial => "/store/cart", :object => @cart) %>
        <%  end %>
      </div>

      <div>
        <%= render :partial =>'/articles/size_news',
          :collection=>Article.index_news(1,3) %>
      </div>
    </div>
    <div class='mainInfo'>
      <%= yield  %>
    </div>
  </div> <!-- End mainContainer-->
</div>

<div class="subContainer">

  <div class="subLinks">
    <div id="contact">
      联系我们：<span class="high_light">广东省肇庆市端州区宋城一路21号中侨机电设备</span> 电话：<span class="high_light">0758-2224836</span> 传真：<span class="high_light">0758-2288224</span>
    </div>
    <!--a href="/store">首页</a> |
    <a href="index.html">售后服务</a> |
    <a href="index.html">联系我们</a-->
  </div><!-- End subLinks-->

  <div class="copyright">
    powered by <a href="http://www.rubyonrails.org">Rails</a>   |
    design by <a href="http://www.iamallen.net">IamAllen.net</a>   |
    <a href="http://validator.w3.org/check/referer"> Valid XHTML</a> |
    <a href="http://jigsaw.w3.org/css-validator/check/referer">Valid CSS</a>
  </div>
  <!-- End copyright-->

</div> <!-- End subContainer-->
<script type="text/javascript">
    var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
    document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
    var pageTracker = _gat._getTracker("UA-5723944-1");
    pageTracker._trackPageview();
</script>
</body>

</html>

